package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

/**
 * @author ：lintao
 * @date ：Created in 2020/12/4
 * @description ：权限Dao层接口
 * @version: 1.0
 */
public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);
    public Page<Permission> selectByCondition(String queryString);
    public void add(Permission permission);
    public Permission findById(Integer id);
    public void edit(Permission permission);
    public Integer findCountByPermissionId(Integer id);
    public void delete(Integer id);
    public List<Permission> findAll();
}
